<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>鑫立方管理系统</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/common.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/main.css" />
<script type="text/javascript" src="<%=basePath%>js/libs/modernizr.min.js"></script>

<script src="<%=basePath%>js/jquery-1.10.2.min.js"></script>

</head>
<body>
  <div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
      <div class="topbar-logo-wrap clearfix">
        <ul class="navbar-list clearfix">
          <li><a class="on" href="#">鑫立方管理系统</a>
          </li>
        </ul>
      </div>
      <div class="top-info-wrap">
        <ul class="top-info-list clearfix">
          <li><a href="/user/logout">退出</a>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <div class="container clearfix">
    <div class="sidebar-wrap">
      <div class="sidebar-content">
        <ul class="sidebar-list">
          <li><a href="#"><i class="icon-font">&#xe003;</i>厂家</a>
            <ul class="sub-menu">
             
             
              <li><a href="<%=basePath + "factory/search"%>"><i class="icon-font">&#xe006;</i>商品管理</a>
              </li>
               
              <li><a href="<%=basePath + "factory/ordersearch"%>"><i class="icon-font">&#xe006;</i>订单确认</a>
              </li>
            </ul></li>
        </ul>
      </div>
    </div>
    <!--/sidebar-->
    <div class="main-wrap">
      <div class="crumb-wrap">
        <div class="crumb-list">
          <i class="icon-font"></i><a href="/factory/index">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">商品管理</span>
        </div>
      </div>
      <div class="result-wrap">
        <form action="/factory/productsave" method="post">
          <table class="insert-tab" width="100%">
            <tbody>
              <input type="hidden" name="product.p_id" value="${product.p_id }" />
              <tr>
                <th><i class="require-red"></i>品牌：</th>
                <td><input class="common-text required" name="product.brand" value="${product.brand}" size="50" type="text" disabled></td>
              </tr>
              <tr>
                <th><i class="require-red"></i>型号：</th>
                <td><input class="common-text required" name="product.type" value="${product.type}" size="50" type="text" disabled>
                </td>
              </tr>
              <tr>
                <th><i class="require-red"></i>规格：</th>
                <td><input class="common-text required" name="product.spec" value="${product.spec}" size="50" type="text" disabled>
                </td>
              </tr>
            
              <tr>
                <th><i class="require-red"></i>材质：</th>
                <td><input class="common-text required" name="product.material" value="${product.material}" size="50" type="text" disabled>
                </td>
              </tr>
             
              <tr>
                <th><i class="require-red"></i>单位：</th>
                <td><input class="common-text required" name="product.unit" value="${product.unit}" size="50" type="text" disabled>
                </td>
              </tr>
              <tr>
                <th><i class="require-red">*</i>状态：</th>
                <td><select name="product.status">
                    <c:if test="${product.status == 0 }">
                      <option value="0" selected="selected">无货</option>
                      <option value="1">有货</option>
                    </c:if>
                    <c:if test="${empty product.status || product.status == 1 }">
                      <option value="0">无货</option>
                      <option value="1" selected="selected">有货</option>
                    </c:if>
                </select>
                </td>
              </tr>
              <tr>
                <th><i class="require-red">*</i>备注：</th>
                <td><input class="common-text required" name="product.productRemark" value="${product.productRemark }" size="50" type="text">
                </td>
              </tr>
              <tr>
                <th></th>
                <td><input class="btn btn-primary btn6 mr10" value="提交" type="submit"> <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                </td>
              </tr>
            </tbody>
          </table>

        </form>
      </div>
    </div>
    <!--/main-->
  </div>
</body>
</html>